package com.ym.medical.domain.param;

import com.ym.medical.domain.entity.DoctorPhoneSettingEntity;
import lombok.Data;

import java.util.Date;

/**
 * ComputerName:DESKTOP-ANGHV23
 * Author:wenbo
 * Date: 2019-05-27
 * Time: 15:37:04
 * Comment:查询扩展工具类
 */
@Data
public class DoctorPhoneSettingModel extends DoctorPhoneSettingEntity {
    private String itemState;



    /**
     * 简单建造,需要手动增加参数
     */
    public static class Builder {

        private DoctorPhoneSettingModel doctorPhoneSettingModel = null;

        {
            if (null == doctorPhoneSettingModel) {
                doctorPhoneSettingModel = new DoctorPhoneSettingModel();
            }
        }

        /**
         * 生成查询对象
         *
         * @return
         */
        public DoctorPhoneSettingModel build() {
            return doctorPhoneSettingModel;
        }

        /**
         * 医生电话咨询主键
         *
         * @param id
         * @return
         */
        public Builder id(Long id) {
            doctorPhoneSettingModel.setId(id);
            return this;
        }

        /**
         * 医生服务项主键
         *
         * @param docServId
         * @return
         */
        public Builder docServId(Long docServId) {
            doctorPhoneSettingModel.setDocServId(docServId);
            return this;
        }

        /**
         * 星期
         *
         * @param dpsWeek
         * @return
         */
        public Builder dpsWeek(String dpsWeek) {
            doctorPhoneSettingModel.setDpsWeek(dpsWeek);
            return this;
        }

        /**
         * 预约时间
         *
         * @param appointTime
         * @return
         */
        public Builder appointTime(Date appointTime) {
            doctorPhoneSettingModel.setAppointTime(appointTime);
            return this;
        }

        /**
         * 重要标志
         *
         * @param flag
         * @return
         */
        public Builder flag(String flag) {
            doctorPhoneSettingModel.setFlag(flag);
            return this;
        }

        /**
         * 被预约标志
         *
         * @param notFalg
         * @return
         */
        public Builder notFalg(String notFalg) {
            doctorPhoneSettingModel.setNotFalg(notFalg);
            return this;
        }

        /**
         * 周天标识
         *
         * @param weekFlag
         * @return
         */
        public Builder weekFlag(Integer weekFlag) {
            doctorPhoneSettingModel.setWeekFlag(weekFlag);
            return this;
        }

        /**
         * 创建时间
         *
         * @param createTime
         * @return
         */
        public Builder createTime(Date createTime) {
            doctorPhoneSettingModel.setCreateTime(createTime);
            return this;
        }


    }

}